package locpris.swan.ac.uk;

import com.jme.math.Vector3f;
import com.jme.renderer.ColorRGBA;
import com.jme.scene.shape.Sphere;

public class MobileNode extends ANode{

	public MobileNode(Vector3f startPosition)
	{
		this.setColour("green");
		this.setLinkColour("blue");
		aNode.setDefaultColor(nodeColour);
		this.setLocation(startPosition);
		aNode.updateGeometry(getLocation(numberNodes), 30, 30, 0.3f);
		nodes.attachChild(aNode);
		addToRoot();
	}
	
	public MobileNode()
	{
		this.setColour("green");
		this.setLinkColour("blue");
		aNode.setDefaultColor(nodeColour);
		this.setLocation(0,0,0);
		aNode.updateGeometry(getLocation(numberNodes), 30, 30, 0.3f);
		nodes.attachChild(aNode);
		addToRoot();
	}
	
	public MobileNode(String name, Vector3f startPosition)
	{
		nodeName = name;
		this.setColour("green");
		this.setLinkColour("green");
		aNode.setDefaultColor(nodeColour);
		this.setLocation(startPosition);
		aNode.updateGeometry(getLocation(numberNodes), 30, 30, 0.3f);
		nodes.attachChild(aNode);
		addToRoot();
	}
}
